package com.sky.mapper.admin;

import com.sky.dto.DishPageQueryDTO;
import com.sky.pojo.Dish;
import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishMapper {
    List<Dish> findByPage(DishPageQueryDTO dishPageQueryDTO);

    void insertDish(Dish dish);

    void deleteByIds(List<Long> ids);

    void updateDish(Dish dish);

    Dish findDishById(Long id);

    List<Dish> findByCategoryId(Integer categoryId);
}
